package demo1;

public class Test2 {

    public static void main(String[] args) {
      C c = new C() ;
      c.print();
    }
}
class A {
    int a = 1 ;
     A(){
         System.out.println("a的构造方法");
     }
}
class B extends  A{
  int b = 2 ;
    B(){
        System.out.println("B的构造方法");
    }
}
class C extends B{
    int c = 3 ;
    C(){
        super();
        System.out.println("C的构造方法");
    }
    public void print(){

    }
}
